<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //二维数组使用array对象创建
    //[[1,2,3],[4,5,6]]
    var inof=new Array(new Array(1,2,3),new Array(4,5,6));
    // 直接法创建  有几个中括号嵌套,那么就是几维数组
    var num=[[1,2,3],[4,5,6],7];
    document.write(num[1][1]);

    var num1=[[['我'],['是'],4],['三维数组'],[]];

    //创建空数组
    var arr=new Array(new Array,new Array);



</script>
</html>